package tgc.edu.yzy.repository;


import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import tgc.edu.yzy.custom.CommonRepository;
import tgc.edu.yzy.entity.Grade;
@Repository
public interface GradeRepository extends CommonRepository<Grade, Integer>{

	
	public List<Grade> findByStudentId(Integer integer);

	public Page<Grade> findByTeacherId(Integer id, Pageable pageable);

	public List<Grade> findByTeacherId(Integer teacherid);



	/*public List<Grade> findByTeacherId(Integer id, Pageable pageable);*/

	

	
	
}
